| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | 6 | import { Body, Controller, Get, Post } from '@nestjs/common'; |
|
| 23 | |||
| 24 | @Post('create') |
||
| 25 | @ApiOperation({ summary: 'Create a new city' }) |
||
| 26 | @ApiResponse({ |
||
| 27 | status: 201, |
||
| 28 | description: 'City created successfully', |
||
| 29 | type: City, |
||
| 30 | }) |
||
| 31 | 6 | async createACity(@Body() createCityDto: CreateCityDto) { |
|
| 32 | 1 | return await this.citiesService.createCity(createCityDto); |
|
| 33 | } |
||
| 35 |